package com.titan.demo.camel.sample.eip.使用pipeline实现顺序调用.camel.route;

import org.apache.camel.spring.SpringRouteBuilder;

public class DemoRouteBuilder extends SpringRouteBuilder {

	@Override
	public void configure() throws Exception {
		from("direct:start")
        .log("begin start ${body}")
        .pipeline("direct:x", "direct:y", "direct:z")
        .log("end start ${body}")
        ;

        from("direct:x")
        .transform().simple("${body}x")
        .log("end x ${body}")
        ;

        from("direct:y")
        .transform().simple("${body}y")
        .log("end y ${body}")
        ;

        from("direct:z")
        .transform().simple("${body}z")
        .log("end z ${body}")
        ;
	}

}
